package cn.com.twoke.game.client.games.tic_tac_toe.entity.data;

import cn.com.twoke.game.client.games.tic_tac_toe.constants.TicTacToeChess;

import java.io.Serializable;

public class UndoData implements Serializable {

    private TicTacToeChess.Type type;
    private String fromId;
    private String acceptId;
    private boolean accept;

    public boolean isAccept() {
        return accept;
    }

    public String getAcceptId() {
        return acceptId;
    }

    public void setAcceptId(String acceptId) {
        this.acceptId = acceptId;
    }

    public void setAccept(boolean accept) {
        this.accept = accept;
    }

    public UndoData(TicTacToeChess.Type type, String fromId) {
        this.type = type;
        this.fromId = fromId;
    }

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public TicTacToeChess.Type getType() {
        return type;
    }

    public void setType(TicTacToeChess.Type type) {
        this.type = type;
    }
}